package com.example.shop.shops.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName t_shop
 */
@TableName(value = "t_shop")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Shop implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    private String name;

    /**
     *
     */
    private String tel;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date registertime;

    /**
     * 店铺状态：0待审核，1以审核，-1驳回，2待激活
     */
    private Integer state;

    /**
     *
     */
    private String address;

    /**
     *
     */
    private String logo;

    /**
     *
     */
    @TableField(value = "admin_id")
    private Long adminId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}